﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheAPI.Data
{
    public class Player
    {
        public override bool Equals(object obj)
        {
            var other = obj as Player;
            return other != null && other.SummonerId == SummonerId;
        }

        public override int GetHashCode()
        {
            return SummonerId.GetHashCode();
        }

        /// <summary>
        /// Champion id associated with player
        /// </summary>
        [JsonProperty("championId")]
        public int ChampionId { get; set; }

        /// <summary>
        /// Summoner id associated with player
        /// </summary>
        [JsonProperty("summonerId")]
        public long SummonerId { get; set; }

        /// <summary>
        /// Team id associated with player
        /// </summary>
        [JsonProperty("teamId")]
        public int TeamId { get; set; }
    }
}
